package com.maple.soa.controller;

import com.maple.soa.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

/**
 * @author lijian
 * @date 2020/7/13
 */
@Controller
public class UserController {

    @RequestMapping("/getUser")
    @ResponseBody
    public User getUser() {
        User user = new User();
        user.setName("李健");
        user.setAge(29);
        user.setGender("男");
        user.setBirthday(new Date());
        return user;
    }

}
